<?php
header ('Content-type: text/html; charset=utf-8');
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
defined('APP_PATH') ? null : define('APP_PATH', 'mcot_login' . DS . 'application');

require_once (APP_PATH . DS . 'initialize.php');

if (!$_SESSION['logged_in'])
{
    redirect_to('mcot_login/administrator/login.php');
} 

$strFileName = $_POST["rFile"];
$objFopen = fopen($strFileName, 'r');
$stringJson='';
if ($objFopen) {
		
	while (!feof($objFopen)) {
		$temp = fgets($objFopen);
		$stringJson .= $temp;
	}
	
	echo $stringJson;
	fclose($objFopen);
}
?>